package com.qf.day02;

import java.util.Scanner;

public class SwitchDemo {
    public static void main(String[] args) {
        System.out.println("请输入评价等级A,B,C,D");
        Scanner sc = new Scanner(System.in);
        String option = sc.next();
        option= option.toUpperCase();
        switch (option){
            case "A":
                System.out.println("优秀");
                break;
            case "B":
                System.out.println("良好");
                break;
            case "C":
                System.out.println("及格");
                break;
            case "D":
                System.out.println("不及格");
                break;
            default:
                System.out.println("输入错误");
        }
    }
}
